package rpcServerService

import (
	"commonService"
	"dataService/models"
	"fmt"
)

type DataService int

func (ds *DataService) ServeAPI(args *commonService.AircraftInfo, reply *int) error {
	*reply = 1
	fmt.Println("to api!!", args.ID, args.Latitude)
	models.AddOne(*args)
	return nil
}
